package nc.itf;



/**
 * business service ejb wrapper 
 * Created by EJBGenerator
 * based on velocity technology
 */

public class gzjk_Local extends nc.bs.mw.naming.BeanBase
    implements nc.itf.gzjkEjbObject {
   
  public gzjk_Local() {
	super();
  }

  private nc.itf.gzjkEjbBean _getBeanObject() throws java.rmi.RemoteException {
    return (nc.itf.gzjkEjbBean) getEjb();
  }

  public void update(java.lang.String arg0) throws java.lang.Exception{
    beforeCallMethod(nc.itf.gzjk_Method_Const_Local.Method_update$String_arg0    );
    Exception er = null;
	try{
				_getBeanObject().update(arg0);			
	}
	catch(Exception e){
		er = e;
	} catch(Throwable thr) {
		  nc.bs.logging.Logger.error("HGY:Unexpected error, tx will rb", thr);
		  er = new nc.bs.framework.exception.FrameworkEJBException("Fatal unknown error", thr);
	}
	try{
		afterCallMethod(nc.itf.gzjk_Method_Const_Local.Method_update$String_arg0, er);    	
	}
	catch(java.rmi.RemoteException remoteException){
		nc.bs.logging.Logger.error("HGY: Unexpected error when call afterCallMethod",  remoteException);
	} finally {
			}
	if( null != er ){
    	if( er instanceof java.lang.Exception ){
    		throw (java.lang.Exception)er;
    	}    

	if(er instanceof RuntimeException)
		throw (RuntimeException)er;
	else	
		throw new nc.bs.framework.exception.FrameworkEJBException(er.getMessage(),er);
	}
 }
  public java.util.ArrayList getAll(java.lang.String arg0) throws java.lang.Exception{
    beforeCallMethod(nc.itf.gzjk_Method_Const_Local.Method_getAll$String_arg0    );
    Exception er = null;
	java.util.ArrayList o = null;
	try{
				o = (java.util.ArrayList)_getBeanObject().getAll(arg0);			
	}
	catch(Exception e){
		er = e;
	} catch(Throwable thr) {
		  nc.bs.logging.Logger.error("HGY:Unexpected error, tx will rb", thr);	  
		  er = new nc.bs.framework.exception.FrameworkEJBException("Fatal unknown error", thr);
	}
	try{
		afterCallMethod(nc.itf.gzjk_Method_Const_Local.Method_getAll$String_arg0, er);
 	}
	catch(java.rmi.RemoteException remoteException){
		nc.bs.logging.Logger.error("HGY: Unexpected error when call afterCallMethod",  remoteException);
	} finally {
			}
	if( null != er ){
    	if( er instanceof java.lang.Exception ){
    		throw (java.lang.Exception)er;
    	}    

	if(er instanceof RuntimeException)
		throw (RuntimeException)er;
	else	
		throw new nc.bs.framework.exception.FrameworkEJBException(er.getMessage(),er);
	}
	return o;
 }
  public java.util.ArrayList getnewpklist(int arg0) throws java.lang.Exception{
    beforeCallMethod(nc.itf.gzjk_Method_Const_Local.Method_getnewpklist$int_arg0    );
    Exception er = null;
	java.util.ArrayList o = null;
	try{
				o = (java.util.ArrayList)_getBeanObject().getnewpklist(arg0);			
	}
	catch(Exception e){
		er = e;
	} catch(Throwable thr) {
		  nc.bs.logging.Logger.error("HGY:Unexpected error, tx will rb", thr);	  
		  er = new nc.bs.framework.exception.FrameworkEJBException("Fatal unknown error", thr);
	}
	try{
		afterCallMethod(nc.itf.gzjk_Method_Const_Local.Method_getnewpklist$int_arg0, er);
 	}
	catch(java.rmi.RemoteException remoteException){
		nc.bs.logging.Logger.error("HGY: Unexpected error when call afterCallMethod",  remoteException);
	} finally {
			}
	if( null != er ){
    	if( er instanceof java.lang.Exception ){
    		throw (java.lang.Exception)er;
    	}    

	if(er instanceof RuntimeException)
		throw (RuntimeException)er;
	else	
		throw new nc.bs.framework.exception.FrameworkEJBException(er.getMessage(),er);
	}
	return o;
 }
  public java.util.ArrayList getOneList(java.lang.String arg0) throws java.lang.Exception{
    beforeCallMethod(nc.itf.gzjk_Method_Const_Local.Method_getOneList$String_arg0    );
    Exception er = null;
	java.util.ArrayList o = null;
	try{
				o = (java.util.ArrayList)_getBeanObject().getOneList(arg0);			
	}
	catch(Exception e){
		er = e;
	} catch(Throwable thr) {
		  nc.bs.logging.Logger.error("HGY:Unexpected error, tx will rb", thr);	  
		  er = new nc.bs.framework.exception.FrameworkEJBException("Fatal unknown error", thr);
	}
	try{
		afterCallMethod(nc.itf.gzjk_Method_Const_Local.Method_getOneList$String_arg0, er);
 	}
	catch(java.rmi.RemoteException remoteException){
		nc.bs.logging.Logger.error("HGY: Unexpected error when call afterCallMethod",  remoteException);
	} finally {
			}
	if( null != er ){
    	if( er instanceof java.lang.Exception ){
    		throw (java.lang.Exception)er;
    	}    

	if(er instanceof RuntimeException)
		throw (RuntimeException)er;
	else	
		throw new nc.bs.framework.exception.FrameworkEJBException(er.getMessage(),er);
	}
	return o;
 }
  public java.util.ArrayList secondquery(java.lang.String arg0 ,java.lang.String arg1  ,java.lang.String arg2  ,int arg3  ,java.lang.String arg4 ) throws java.lang.Exception{
    beforeCallMethod(nc.itf.gzjk_Method_Const_Local.Method_secondquery$String_arg0$String_arg1$String_arg2$int_arg3$String_arg4    );
    Exception er = null;
	java.util.ArrayList o = null;
	try{
				o = (java.util.ArrayList)_getBeanObject().secondquery(arg0 ,arg1  ,arg2  ,arg3  ,arg4 );			
	}
	catch(Exception e){
		er = e;
	} catch(Throwable thr) {
		  nc.bs.logging.Logger.error("HGY:Unexpected error, tx will rb", thr);	  
		  er = new nc.bs.framework.exception.FrameworkEJBException("Fatal unknown error", thr);
	}
	try{
		afterCallMethod(nc.itf.gzjk_Method_Const_Local.Method_secondquery$String_arg0$String_arg1$String_arg2$int_arg3$String_arg4, er);
 	}
	catch(java.rmi.RemoteException remoteException){
		nc.bs.logging.Logger.error("HGY: Unexpected error when call afterCallMethod",  remoteException);
	} finally {
			}
	if( null != er ){
    	if( er instanceof java.lang.Exception ){
    		throw (java.lang.Exception)er;
    	}    

	if(er instanceof RuntimeException)
		throw (RuntimeException)er;
	else	
		throw new nc.bs.framework.exception.FrameworkEJBException(er.getMessage(),er);
	}
	return o;
 }
  public java.util.ArrayList firistQuery(java.lang.String arg0 ,java.lang.String arg1  ,java.lang.String arg2  ,int arg3  ,java.lang.String arg4 ) throws java.lang.Exception{
    beforeCallMethod(nc.itf.gzjk_Method_Const_Local.Method_firistQuery$String_arg0$String_arg1$String_arg2$int_arg3$String_arg4    );
    Exception er = null;
	java.util.ArrayList o = null;
	try{
				o = (java.util.ArrayList)_getBeanObject().firistQuery(arg0 ,arg1  ,arg2  ,arg3  ,arg4 );			
	}
	catch(Exception e){
		er = e;
	} catch(Throwable thr) {
		  nc.bs.logging.Logger.error("HGY:Unexpected error, tx will rb", thr);	  
		  er = new nc.bs.framework.exception.FrameworkEJBException("Fatal unknown error", thr);
	}
	try{
		afterCallMethod(nc.itf.gzjk_Method_Const_Local.Method_firistQuery$String_arg0$String_arg1$String_arg2$int_arg3$String_arg4, er);
 	}
	catch(java.rmi.RemoteException remoteException){
		nc.bs.logging.Logger.error("HGY: Unexpected error when call afterCallMethod",  remoteException);
	} finally {
			}
	if( null != er ){
    	if( er instanceof java.lang.Exception ){
    		throw (java.lang.Exception)er;
    	}    

	if(er instanceof RuntimeException)
		throw (RuntimeException)er;
	else	
		throw new nc.bs.framework.exception.FrameworkEJBException(er.getMessage(),er);
	}
	return o;
 }
  public nc.vo.bd.b04.DeptdocVO getDeptdocVO(java.lang.String arg0) throws java.lang.Exception{
    beforeCallMethod(nc.itf.gzjk_Method_Const_Local.Method_getDeptdocVO$String_arg0    );
    Exception er = null;
	nc.vo.bd.b04.DeptdocVO o = null;
	try{
				o = (nc.vo.bd.b04.DeptdocVO)_getBeanObject().getDeptdocVO(arg0);			
	}
	catch(Exception e){
		er = e;
	} catch(Throwable thr) {
		  nc.bs.logging.Logger.error("HGY:Unexpected error, tx will rb", thr);	  
		  er = new nc.bs.framework.exception.FrameworkEJBException("Fatal unknown error", thr);
	}
	try{
		afterCallMethod(nc.itf.gzjk_Method_Const_Local.Method_getDeptdocVO$String_arg0, er);
 	}
	catch(java.rmi.RemoteException remoteException){
		nc.bs.logging.Logger.error("HGY: Unexpected error when call afterCallMethod",  remoteException);
	} finally {
			}
	if( null != er ){
    	if( er instanceof java.lang.Exception ){
    		throw (java.lang.Exception)er;
    	}    

	if(er instanceof RuntimeException)
		throw (RuntimeException)er;
	else	
		throw new nc.bs.framework.exception.FrameworkEJBException(er.getMessage(),er);
	}
	return o;
 }
  public java.util.HashMap getHashMap(java.lang.String arg0) throws java.lang.Exception{
    beforeCallMethod(nc.itf.gzjk_Method_Const_Local.Method_getHashMap$String_arg0    );
    Exception er = null;
	java.util.HashMap o = null;
	try{
				o = (java.util.HashMap)_getBeanObject().getHashMap(arg0);			
	}
	catch(Exception e){
		er = e;
	} catch(Throwable thr) {
		  nc.bs.logging.Logger.error("HGY:Unexpected error, tx will rb", thr);	  
		  er = new nc.bs.framework.exception.FrameworkEJBException("Fatal unknown error", thr);
	}
	try{
		afterCallMethod(nc.itf.gzjk_Method_Const_Local.Method_getHashMap$String_arg0, er);
 	}
	catch(java.rmi.RemoteException remoteException){
		nc.bs.logging.Logger.error("HGY: Unexpected error when call afterCallMethod",  remoteException);
	} finally {
			}
	if( null != er ){
    	if( er instanceof java.lang.Exception ){
    		throw (java.lang.Exception)er;
    	}    

	if(er instanceof RuntimeException)
		throw (RuntimeException)er;
	else	
		throw new nc.bs.framework.exception.FrameworkEJBException(er.getMessage(),er);
	}
	return o;
 }
  public java.lang.Object getOne(java.lang.String arg0) throws java.lang.Exception{
    beforeCallMethod(nc.itf.gzjk_Method_Const_Local.Method_getOne$String_arg0    );
    Exception er = null;
	java.lang.Object o = null;
	try{
				o = (java.lang.Object)_getBeanObject().getOne(arg0);			
	}
	catch(Exception e){
		er = e;
	} catch(Throwable thr) {
		  nc.bs.logging.Logger.error("HGY:Unexpected error, tx will rb", thr);	  
		  er = new nc.bs.framework.exception.FrameworkEJBException("Fatal unknown error", thr);
	}
	try{
		afterCallMethod(nc.itf.gzjk_Method_Const_Local.Method_getOne$String_arg0, er);
 	}
	catch(java.rmi.RemoteException remoteException){
		nc.bs.logging.Logger.error("HGY: Unexpected error when call afterCallMethod",  remoteException);
	} finally {
			}
	if( null != er ){
    	if( er instanceof java.lang.Exception ){
    		throw (java.lang.Exception)er;
    	}    

	if(er instanceof RuntimeException)
		throw (RuntimeException)er;
	else	
		throw new nc.bs.framework.exception.FrameworkEJBException(er.getMessage(),er);
	}
	return o;
 }
}